Search results
290 packages found
Get the visual width of a string - the number of columns required to display it
ECMAScript “ToPrimitive” algorithm. Provides ES5 and ES2015 versions.
- primitive
- abstract
- ecmascript
- es5
- es6
- es2015
- toPrimitive
- coerce
- type
- object
- string
- number
- boolean
- symbol
- View more
Parse String to Number based on configuration
Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`
- pretty
- prettify
- human
- humanize
- humanized
- readable
- time
- ms
- milliseconds
- duration
- period
- range
- text
- string
- View more
Contains some util methods for converting numbers into words, ordinal words and ordinal numbers.
Get the visual width of the widest line in a string - the number of columns required to display it
Zero-fill a number to the given size.
Easy to use, Symbol-based enum implementation
Convert a string index to its line and column position
A simple utility library for string manipulations including case transformations and hexadecimal conversions.
- string
- hex
- text-to-hex
- hex-to-text
- case-conversion
- uppercase
- lowercase
- number-to-hex
- hex-to-number
- string-manipulation
- text-processing
- utility
- conversion
- string-utils
Contains some util methods for converting numbers into words, ordinal words and ordinal numbers. English and Malayalam
This module is small but easy to use. The purpose of this module is to check if the source value is bigger than the target value, and optionally also if they are equal. The source and target can be a string or a number.
Convert a number to chinese words. Inspired from number-to-words
Contains some util methods for converting numbers into words, ordinal words and ordinal numbers.
Contains some util methods for converting numbers into words, ordinal words and ordinal numbers.
Lightweight module to convert number to a human readable string or bigint.
This module is small but easy to use. The purpose of this module is to check if a target value equals a source value, it can optionally also do none case sensitive comparing.
Convert number to a human readable string: `13500` → `13.5K`
Convert a decimal proportion to a percentage string
A robust micro library for type checking. Defers to constructs' internal `[[Class]]` property rather than duck typing for excellent type detection and to avoid triggering false positives.